
function query_applyAudit() {
	
	var parm = $('#queryApplyManagerForm').serialize();
	var url = create_url('reimburseManager-query');
	
	$.ajax({type:'POST', url:url, data:parm,
		success: function (result) {
			$('#page_content').html(result);
			swiperNested1.reInit();			// 刷新样式计算
		},
		error:function (e) {
			
		}
	});
}


//点击查看完以后,修改确认状态
function updateDesignate1_reimburseManager(code) {
	var parm = {'code':code};
	var url = create_url('reimburseManager-updateDesignate1');
	$.ajax({type:'POST',url:url, data:parm,
		success:function (result) {
			sys_submiting_close();
			if (result == 'success') {
				alert('操作成功!');
				sys_load_handl('reimburseManager');
			} else if (result == 'exists') {
				sys_msg('对不起！你已经审核过了！');
			} else if (result == 'error') {
				sys_msg('对不起! 你没有权限');
			} else if (result == 'parameter_error') {
				sys_msg('对不起! 上级还未审核');
			} else {
				sys_msg('操作失败!');
			}
		}
	});
}

function check_reimburseManager() {
	var remark = $('#remark').val();
	if (remark == null || remark == ''){
		$('#remark').css('border-color','red');
	}
}

//点击查看完以后,修改确认状态
function updateDesignate2_reimburseManager(code) {
	var remark = $('#remark').val();
	if (remark == null || remark == ''){
		alert('亲，要说明驳回原因的哦！');
		return false;
	}
	var parm =  {'code':code, 'remark': remark};
	var url = create_url('reimburseManager-updateDesignate2');
	$.ajax({type:'POST',url:url, data:parm,
		success:function (result) {
				sys_submiting_close();
			if (result == 'success') {
				alert('操作成功!');
				sys_load_handl('reimburseManager');
			} else if (result == 'exists') {
				sys_msg('对不起！已经审核过了！');
			} else if (result == 'error') {
				sys_msg('对不起! 你没有权限');
			} else if (result == 'parameter_error') {
				sys_msg('对不起! 上级还未审核');
			} else {
				sys_msg('操作失败!');
			}
		}
	});
}
